<%@ include file="/taglibs.jsp" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<head>
	<title>北京邮电大学学生党员在线学习中心</title>
	<script type="text/javascript" src="${ctx }/scripts/upToTop.js"></script>
	
	
	<script type="text/javascript">
	$(function(){
		var newsCategory = '<%=request.getAttribute("newsCategory") %>';
		
		var data = "";
		if(newsCategory==1){
			var data = "上级精神"; 
			$('#links').attr("href","${ctx}/PartyNews_spiritNews");
		}else if(newsCategory==2){
			var data = "学校要闻"; 
			$('#links').attr("href","${ctx}/PartyNews_schoolNews");
		}else if(newsCategory==3){
			var data = "院系风采";
			$('#links').attr("href","${ctx}/PartyNews_collegeNews");
		}
		// Change pageLabel
		$('#pageLabel').text(data);
	});
	
	$(document).ready(function() {
		var item = $('#actionForm').attr('action');
		if(item == '/PartyNews_spiritNews'){
			$('#newsCategoryLabel').text("上级精神");
		}else if(item == '/PartyNews_schoolNews'){
			$('#newsCategoryLabel').text("学校要闻");
		}else if(item == '/PartyNews_collegeNews'){
			$('#newsCategoryLabel').text("院系风采");
		}
	})
	
	</script>
	
</head>

<s:if test="#session.session_user!=null">
<div id="nav_bar">
    <img id="nav_bar_left" src="../../../styles/nav_bar_left.png" alt=""/>
    <div id="welcome_label">欢迎您，&nbsp;<s:property value="#session.session_user.studentName" />!</div>
    <img id="nav_bar_seperator" src="../../../styles/nav_bar_seperator.png" alt=""/>
    <div id="nav_location">
        <img id="nav_bar_point" src="../../../styles/nav_bar_point.png" alt="" />
        <div id="nav_cur_location">当前位置：&nbsp;<a href="${ctx}/UserAction_indexAction">首页</a>&nbsp;&nbsp;>&nbsp;&nbsp;<a href="${ctx}/PartyNews_spiritNews">党建动态</a>&nbsp;&nbsp;>&nbsp;&nbsp;<a  id="links"  href="#" ><span id="pageLabel" style="color:black;"></span></a>&nbsp;&nbsp;>&nbsp;&nbsp;正文</div>
    </div>
    <img style="float:right; width:5px;" src="../../../styles/nav_bar_right.png" alt=""/>
    <a id="nav_logout" href="${ctx}/logoutAction">[安全退出]</a>
</div>
</s:if>

<div style="min-height: 450px;">
<table cellspacing="0" cellpadding="0" style="width:900px;  margin-right:auto; margin-left:auto; margin-top:40px;">
<tr>
	<td style="text-align:center; font-size:24px; font-weight:bold; font-family:楷体;">
		<table style="width:65%; margin-right:auto; margin-left:auto; ">
			<tr>
				<td style="text-align:center; font-size:24px; font-weight:bold; font-family:楷体;">
					<s:property value="currentNews.title"/>
				</td>
			</tr>
		</table>
	
	</td>
</tr>
<tr>
	<td style="text-align:center; height:30px;">发布时间：<s:date name="currentNews.postTime" format="yyyy-MM-dd"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布者：<s:property value="getPosterNameByNo(currentNews.posterNo)" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;点击：<s:property value="currentNews.visitedCount" />次</td>
</tr>
<tr>
	<td style="line-height:22px; text-indent:2em;"><s:property value="currentNews.content" escape="false"/></td>
</tr>
</table>
</div>

<div align="right">
	 <a href="#" onclick="goTop();return false;"><img alt="回到顶部" src="${ctx}/images/turn_top.gif">回到顶部</a>
</div>